package com.xjh.basestudy.designmode.createMode.createMode3_FactoryMethod.p1_original;

/**
 * @author XuJianHua
 * @date 2022-09-22 17:03:24
 * @description 验证扩展
 */
public class Rocket extends Enemy {
    public Rocket(int x, int y){
        super(x, y);//调用父类构造方法初始化坐标
    }

    @Override
    public void show() {
        System.out.println("绘制飞机于上层图层，出现坐标：" + x + "," + y);
        System.out.println("飞机向玩家发起攻击……");
    }
}
